<div class="main_content" id="main_content">
	<div id="printArea" class="printArea">
		<table width="98%" name="tab_print" id="tab_print" class="tab_print" border="0" cellpadding="0" cellspacing="1" align="left">
		<tbody>
			<tr><td colspan="8" class="tab_title">设备调拨</td></tr>
			<tr><td colspan="8">调拨单号: {%$allocation_no%} <!--合同编号: {%$contract_no%}--> </td></tr>
			<tr>
				<td>调拨出处</td>
				<td>{%$allocation_from%}</td>
				<td>调拨去处</td>
				<td>{%$allocation_to%}</td>
			</tr>
			<tr>
				<td>调拨日期</td>
				<td>{%$allocation_time|date_format:"%Y-%m-%d"%}</td>
				<td colspan=2></td>
			</tr>
			<tr>
				<td>调拨备注 </td>
				<td colspan="7" class="aleft">{%$allocation_info%}</td>
			</tr>
			{%if $recordArr%}
			<tr class="txtbold">
				<td width="15%">序号</td>
				<td>厂家编号</td>
				<td width="15%">设备状态</td>
				<td>首次启用时间</td>
			</tr>
			{%foreach item=list from=$recordArr name="rec"%}
			<tr>
				<td>{%math equation="x + 1" x=$smarty.foreach.rec.index%}</td>
				<td>{%$list.comp_no%}</td>
				<td>{%if $list.mc_state eq 1%}完好{%else%}破损{%/if%}</td>
				<td>{%$list.start_time|date_format:"%Y-%m-%d"%}</td>
			</tr>
			{%/foreach%}
			{%/if%}
		</table>
	</div>
	
	<div class="btn_list">
		<span class="btn_add" onclick="doPrint()">打 印</span>
	</div>
</div>

<script type="text/javascript">
function doPrint() {
	$("#printArea").printArea();;
}
</script>